Warning fix in locus
authorRobert Lipe <robertlipe@gpsbabel.org>
Mon, 3 Dec 2018 06:46:02 +0000 (00:46 -0600)
committerRobert Lipe <robertlipe@gpsbabel.org>
Mon, 3 Dec 2018 06:46:02 +0000 (00:46 -0600)
mtk_locus.cc

index ab7f4335a5bbca5a94cf4fdec43ce32291f98563..23c322a0cafd5727c58947285bee8592e05e96c7 100644 (file)
@@ -325,7 +325,6 @@ process_packet()
 void
 process_pmtklox()
 {
-  int hexval;
   uint8_t fixbytes[16];
   static Waypoint* trkpt;
   static Waypoint* waypt;
@@ -384,6 +383,7 @@ process_pmtklox()
         return;
       }
       for (int i = 0; i<4; i++) {
+        unsigned int hexval;
         sscanf(&token[i * 2], "%2x", &hexval);
         fixbytes[bytenum++] = hexval;
         calculated_checksum ^= hexval;